<?php


$fileName = $_GET['name'];
$dir = $_GET['dir'];

require_once $dir.'/'.$fileName.'.php';